<template>

	<body>
		<div class="loan_nav col_nav">
			<ul>
				<li>
					<a href="javascript:history.go(-1)">
						<i class="iconfont">&#xe61e;</i>
					</a>
				</li>
				<li>
					<p>重置支付密码</p>
				</li>
				<li></li>
			</ul>
		</div>
		<div class="interval_T">

		</div>
		<div class="password_tip">
			<p>设置密码时请不要告诉他人，请牢记！</p>
		</div>
		<div class="password_text">
			<ul>
				<li><input v-model="params.password" type="password" placeholder="请输入登录密码" /></li>
			</ul>
		</div>
		<div class="password_text nt">
			<ul>
				<li><input v-model="params.tradePassword" type="password" placeholder="请输入新支付密码" /></li>
			</ul>
		</div>
		<div class="password_tip">
			<p>密码长度6-20字符，建议数字、英文组合</p>
		</div>
		<div class="btn">
			<a><input @click="change" type="button" value="确认" class="col-green" /></a>
		</div>
	</body>
</template>

<script>
export default {
	data() {
		return {
			params: {}
		}
	},
	methods: {
		change() {
			this.$http.post('/app/member/setTradePwd', this.params).then(json => {
				const { code, msg } = json
				if (code === 0) {
					this.$vux.toast.show({ text: '修改成功' })
					this.$router.go(-1)
				}
			})
		}
	}
}
</script>

<style>

</style>